<?php

namespace App\Admin\Renderable\Data;

use App\Models\Data\ClickLearnSpell;
use Dcat\Admin\Support\LazyRenderable;
use Dcat\Admin\Widgets\Table;

class SpellOptionData extends LazyRenderable
{

    public function render()
    {
        $list=ClickLearnSpell::query()->select([
            'name','time','end_time','color','is_option'
        ])->get()->toArray();

        return Table::make(['名称', '卡点时间', '结束时间', '颜色','是否为选项'], $list);
    }
}
